<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<a :href="href" >点击查找</a>
			<button type="button" @click="change">切换</button>
		</div>
		<script src="vue.js"></script>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#app",
				data: {
				  href: 'http://www.tmall.com'
				},
				methods: {
					change() {
						this.href = 'http://baidu.com'
					}
				}
			})
		</script>
	</body>
</html>

